﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using DTCash.Redis;
using Uranus.Service.ProductService;
using Uranus.WeiStationAPI.Models;

namespace Uranus.WeiStationAPI.Controllers
{
    public class TestController : ApiController
    {
        //
        // GET: /Test/

        [HttpGet]
        public int Index()
        {
            //LoanProductResponse loanProductResponse = Service.Product.GetProduct().GetLoanProductDTOList(new LoanProductRequest()
            //{
            //    ProductGroupIds = new List<int>() { 1,2,3 },
            //    ProductStatusIds = new List<int>() { 2,3 },
            //    TrusteeshipStatusIDs = new List<int>() { 1,2 },
            //    PageIndex = 1,
            //    PageSize = 511
            //}) ?? new LoanProductResponse();
            //resultResPonse.code = 1;
            //    resultResPonse.data = loanProductResponse.list;
            using (DTCash.DistributedLock.DistributedLock.GetLockByTimeOutDisposable("test", new TimeSpan(0, 1, 15), new TimeSpan(0, 10, 0)))
            {
                return 0;
            }
        }

    }
}
